package library.admin.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "借阅记录分页查询")
public class BorrowRecordPageQuery extends PageQuery{
    @ApiModelProperty("复本编号")
    private Long copyId;

    @ApiModelProperty("图书名")
    private String title;

    @ApiModelProperty("借阅人")
    private String name;

    @ApiModelProperty("最小借出日期")
    @DateTimeFormat(pattern = "yyyy-M-d H:m:s")
    private LocalDateTime minBorrowData;

    @ApiModelProperty("最大借出日期")
    @DateTimeFormat(pattern = "yyyy-M-d H:m:s")
    private LocalDateTime maxBorrowData;

    @ApiModelProperty("最小应还日期")
    @DateTimeFormat(pattern = "yyyy-M-d H:m:s")
    private LocalDateTime minDueDate;

    @ApiModelProperty("最大应还日期")
    @DateTimeFormat(pattern = "yyyy-M-d H:m:s")
    private LocalDateTime maxDueDate;

    @ApiModelProperty("最小借阅天数")
    private Long minBorrowDays;

    @ApiModelProperty("最大借阅天数")
    private Long maxBorrowDays;
}